'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.i18n = exports.REQUEST_ERROR_TYPE = exports.callAPI = exports.Request = exports.bindAction = exports.makeBaseActionType = exports.makeBaseApi = exports.makeCallAPI = exports.makeActionType = exports.createReducer = exports.removeToken = exports.getToken = exports.getCookie = exports.writeCookie = exports.deleteCookie = exports.requireAllAsObject = exports.requireAll = exports.configureStore = exports.App = undefined;

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _cookies = require('./utils/cookies');

Object.defineProperty(exports, 'deleteCookie', {
  enumerable: true,
  get: function get() {
    return _cookies.deleteCookie;
  }
});
Object.defineProperty(exports, 'writeCookie', {
  enumerable: true,
  get: function get() {
    return _cookies.writeCookie;
  }
});
Object.defineProperty(exports, 'getCookie', {
  enumerable: true,
  get: function get() {
    return _cookies.getCookie;
  }
});
Object.defineProperty(exports, 'getToken', {
  enumerable: true,
  get: function get() {
    return _cookies.getToken;
  }
});
Object.defineProperty(exports, 'removeToken', {
  enumerable: true,
  get: function get() {
    return _cookies.removeToken;
  }
});

var _reduxHelper = require('./utils/reduxHelper');

Object.defineProperty(exports, 'makeActionType', {
  enumerable: true,
  get: function get() {
    return _reduxHelper.makeActionType;
  }
});
Object.defineProperty(exports, 'makeCallAPI', {
  enumerable: true,
  get: function get() {
    return _reduxHelper.makeCallAPI;
  }
});
Object.defineProperty(exports, 'makeBaseApi', {
  enumerable: true,
  get: function get() {
    return _reduxHelper.makeBaseApi;
  }
});
Object.defineProperty(exports, 'makeBaseActionType', {
  enumerable: true,
  get: function get() {
    return _reduxHelper.makeBaseActionType;
  }
});
Object.defineProperty(exports, 'bindAction', {
  enumerable: true,
  get: function get() {
    return _reduxHelper.bindAction;
  }
});

var _request = require('./utils/request');

Object.defineProperty(exports, 'Request', {
  enumerable: true,
  get: function get() {
    return _request.Request;
  }
});
Object.defineProperty(exports, 'callAPI', {
  enumerable: true,
  get: function get() {
    return _request.callAPI;
  }
});

var _api = require('./middlewares/api');

Object.defineProperty(exports, 'REQUEST_ERROR_TYPE', {
  enumerable: true,
  get: function get() {
    return _api.REQUEST_ERROR_TYPE;
  }
});

var _Root = require('./containers/Root');

var _Root2 = _interopRequireDefault(_Root);

var _configureStore = require('./store/configureStore');

var _configureStore2 = _interopRequireDefault(_configureStore);

var _createReducer2 = require('./utils/createReducer');

var _createReducer3 = _interopRequireDefault(_createReducer2);

var _i18n2 = require('./i18n');

var _i18n3 = _interopRequireDefault(_i18n2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function requireAll(requireContext) {
  return requireContext.keys().map(requireContext);
}

function requireAllAsObject(requireContext) {
  return requireContext.keys().reduce(function (all, each) {
    var e = requireContext(each).default;
    return _extends({}, e, all);
  }, {});
}
var REQUEST_ERROR_TYPE = 'REQUEST_ERROR_TYPE';

exports.App = _Root2.default;
exports.configureStore = _configureStore2.default;
exports.requireAll = requireAll;
exports.requireAllAsObject = requireAllAsObject;

// export history from './utils/history'

exports.createReducer = _createReducer3.default;
exports.i18n = _i18n3.default;